package org.edu.modules.maker.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper;
import org.edu.modules.maker.entity.VeCuzCourseMaker;
import org.edu.modules.maker.mapper.VeCuzCourseMakerMapper;
import org.edu.modules.maker.service.IVeCuzCourseMakerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VeCuzCourseMakerServiceImpl
        extends ServiceImpl<VeCuzCourseMakerMapper, VeCuzCourseMaker>
        implements IVeCuzCourseMakerService
{
    @Autowired
    VeCuzCourseMakerMapper veCuzCourseMakerMapper;

    public boolean saveMaker(VeCuzCourseMaker veCuzCourseMaker)
    {
        return SqlHelper.retBool(Integer.valueOf(((VeCuzCourseMakerMapper)getBaseMapper()).insert(veCuzCourseMaker)));
    }

    public VeCuzCourseMaker getByCourseId(int courseid, int makerid)
    {
        return this.veCuzCourseMakerMapper.getByCourseId(courseid, makerid);
    }
}
